package com.czy.seed.mvc.home.service.impl;

import com.czy.seed.mvc.base.service.impl.BaseServiceImpl;
import com.czy.seed.mvc.home.entity.*;
import com.czy.seed.mvc.home.mapper.PurchaseDetailedListMapper;
import com.czy.seed.mvc.home.service.PurchaseDetailedListService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.math.BigDecimal;
import java.util.List;

@Service
public class PurchaseDetailedListServiceImpl extends BaseServiceImpl<PurchaseDetailedList> implements PurchaseDetailedListService {
    @Autowired
    private PurchaseDetailedListMapper purchaseDetailedListMapper;
    @Override
    public void updateByParentId(String type, long ssdd_glgx,long c_userid) {

        purchaseDetailedListMapper.updateByParentId(type, ssdd_glgx,c_userid);
    }
    @Override
    public void updateById(String type, long id,long c_userid) {

        purchaseDetailedListMapper.updateById(type, id,c_userid);
    }
    @Override
    public void updateByParentId_(String type, long id, String resultvalidationname, String resultvalidationpath,long c_userid) {
        purchaseDetailedListMapper.updateByParentId_(type, id, resultvalidationname, resultvalidationpath,  c_userid);
    }
    @Override
    public void updateByParentId_m(String type, long id, String resultvalidationname, String resultvalidationpath,long c_userid) {
        purchaseDetailedListMapper.updateByParentId_m(type, id, resultvalidationname, resultvalidationpath,  c_userid);
    }

    @Override
    public void updateByParentId4mmerchant(long mmerchant_id, long id, long c_userid, BigDecimal QuoteSum) {
        purchaseDetailedListMapper.updateByParentId4mmerchant(mmerchant_id, id,c_userid,QuoteSum);
    }

    @Override
    public long selectPurchaseOrdesIdByQuotation(long id) {
       return  purchaseDetailedListMapper.selectPurchaseOrdesIdByQuotation(id);
    }
    @Override
    public int selectSum(long id) {
        return  purchaseDetailedListMapper.selectSum(id);
    }

    @Override
    public List<StatisticsDataVo> statisticsData(){
        return  purchaseDetailedListMapper.statisticsData();
    }

}

